import instance from '../utils/request'

// 定义验证码图片接口
export function getcaptcha(){
  return instance({
    method:'get',
    url:'/captcha/api/math'
  })
}

// 定义登录接口
export function loginApi(data){
  return instance({
    method:'post',
    url:'/api/common/auth/login',
    data
  })
}